
'use strict';
// 领券
module.exports = {
  up: async (queryInterface, Sequelize) => {
    const { INTEGER, STRING, DATE, ENUM } = Sequelize;
    // 创建表
    await queryInterface.createTable('bank-config', {
      id: {
        type: INTEGER(30).UNSIGNED,
        primaryKey: true,
        autoIncrement: true
      },
      title:{
        type: STRING(200),
        allowNull: false,
        defaultValue: '',
        comment: '标题',
      },
      logo:{
        type: STRING(300),
        allowNull: false,
        defaultValue: '',
        comment: 'logo',
      },
      bg_image:{
        type: STRING(300),
        allowNull: false,
        defaultValue: '',
        comment: '背景图片',
      },
      created_at: DATE,
      updated_at: DATE,
    });
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.dropTable('bank-config');
  }
};